
using Mengsk.ProxyDelivery.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mengsk.ProxyDelivery.Service
{
    public class SellerShopService : ServiceBase<SellerShop>
    {
        public DataCollection<SellerShop> GetByAll(PopType popType, int sellerId, string popSellerName, string popShopName, int pageIndex, int pageSize)
        {
            Request req = new Request { Api = "getByAll" };
            req.Parameters.Add(new Parameter("popType", popType));
            req.Add("sellerId", sellerId);
            req.Add("popSellerName", popSellerName);
            req.Add("popShopName", popShopName);
            req.Add("pageIndex", pageIndex);
            req.Add("pageSize", pageSize);

            return this.DoRemoteCall<SellerShop>(req).ToDataCollection();
        }
    }
}